# -*- coding;utf-8 -*-
"""
File name : tasks.PY
Program IDE : PyCharm
Create file time: 2023/10/22 8:22
File Create By Author : 朱清闯
"""
from celery_tasks.main import app
from account.models import RechargeLog


@app.task(name='create_recharge_log')
def save_recharge_log(user, amount):
    log = RechargeLog(user=user, amount=amount)
    log.save()
